import upload from '@/utils/upload'
import request from '@/utils/request'





// 获取奇闻轶事
export function getStoryById(id) {
	const routeUrl = '/system/story/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取最新奇闻轶事
export function getStoryNew() {
	const routeUrl = '/system/story/new' 
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取奇闻轶事的上条信息
export function getStoryPreById(id) {
	const routeUrl = '/system/story/prev/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取奇闻轶事的下条信息
export function getStoryNextById(id) {
	const routeUrl = '/system/story/next/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 查询奇闻轶事列表
export function listStory(query) {
	return request({
		url: '/system/story/list',
		method: 'get',
		params: query
	})
}




